
module.exports = app => {

    return class HomeController extends app.Controller {



        async cancel() {
            let params = this.ctx.request.body;
            let data = await this.ctx.service.like.cancel(params);
            this.success(data)
        }


        async add() {
            let params = this.ctx.request.body;
            let data = await this.ctx.service.like.add(params);
            this.success(data)
        }

    };
};
